import request from '@/utils/request'

export const peopleList = (data) => {
  return request.get('/api/user-service/user/search', {
    params: {
      ...data
    }
  })
}
// 获取公司员工
export const peopleType = () => { return request.get('/api/user-service/role') }
// 获取公司员工
export const area = () => { return request.get('/api/vm-service/region/search?pageIndex=1&pageSize=100000') }
// 新增员工
export const newPeopke = (data) => { return request.post('/api/user-service/user', data) }
// 修改员工
export const changePeopke = (data) => { return request.put(`/api/user-service/user/${data.id}`, data) }
